#ifndef __QUEUE_H
#define __QUEUE_H
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

typedef struct
{
	int max;
	int head;
	int tail;
	uint8_t *buf;
} Circular_Queue;
int queue_read(Circular_Queue *Queue, uint8_t *buf, int len);
int queue_write(Circular_Queue *Queue, uint8_t *buf, int len);
int queue_getLength(Circular_Queue *Queue);
bool queue_isFill(Circular_Queue *Queue);
#endif
